package com.bs.repository;

import com.bs.domain.Deploy;
import com.bs.domain.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.sql.Timestamp;
import java.util.List;

/**
 * Spring Data JPA repository for the Deploy entity.
 */
@SuppressWarnings("unused")
public interface DeployRepository extends JpaRepository<Deploy,Long>,JpaSpecificationExecutor<Deploy> {
    List<Deploy> findBysubmitDateLessThan(Timestamp time);//小于某个时间的

    @Query("select DISTINCT t.part from Deploy t where t.part is not null")
    List getPartitions();
}
